#ifndef FLASH_DRIVER_H_
#define FLASH_DRIVER_H_

#include "zf_common_typedef.h"
#include "zf_driver_flash.h"




typedef struct                                                                
{
    flash_data_union   pid_loc_v_angle_kp;
    flash_data_union   pid_loc_v_angle_ki;
    flash_data_union   pid_loc_v_angle_kd;

    flash_data_union   pid_loc_a_angle_kp;
    flash_data_union   pid_loc_a_angle_ki;
    flash_data_union   pid_loc_a_angle_kd;

    flash_data_union   pid_inc_v_avarage_kp;
    flash_data_union   pid_inc_v_avarage_ki;
    flash_data_union   pid_inc_v_avarage_kd;

    flash_data_union   pid_loc_yaw_angle_kp;
    flash_data_union   pid_loc_yaw_angle_ki;
    flash_data_union   pid_loc_yaw_angle_kd;

    flash_data_union   pid_inc_roll_angle_kp;
    flash_data_union   pid_inc_roll_angle_ki;
    flash_data_union   pid_inc_roll_angle_kd;

    flash_data_union   split_point;
    flash_data_union   BLACK_THRESHOLD;
    flash_data_union   C_bright;
    flash_data_union   C_dark;
    flash_data_union   avr_speed;

    flash_data_union   sever_left_up;
    flash_data_union   sever_left_down;
    flash_data_union   sever_right_up;
    flash_data_union   sever_right_down;

}flash_data_union_struct;  

extern int set_speed;
extern flash_data_union_struct flash;

void save_all_data(void);
void read_all_data(void);

#endif
